home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
cool
/
ge_cool.lha
/
GE_COOL2.1
/
src
/
Set
/
TODO
< prev
Wrap
Text File
|
1992-05-12
|
844b
|
27 lines
File: Set.h
Enforce const for set operations + - ^ |, etc...
Currently, const cannot be enforced because the curpos pointer changes.
Save curpos and restore it, so that const is enforced.
DONE
********
*** All the comments in cool/Hash_Table/TODO apply to Set
********
operator| operator^
These can be re-written to copy "this" to a temporary, and call
the matching operator|= or operator^= method.
For example:
template <class Type>
Set<Type> Set<Type>::operator| (Set<Type>& s) {
Set<Type> result(this->length() + s.length()); // Temporary variable
for (this->reset(); this->next (); ) // For each entry in 1st set
result->put (this->value()); // Put entry to result set
result.operator|=(s);
return result; // Return resulting union
}
test_Set depends on the hash sequence of the Sun/4. This needs to be fixed.